package com.talkyun.openx.server.session;

import java.util.concurrent.ConcurrentHashMap;

public class Session extends ConcurrentHashMap<String, Object> {
    private String id;
    private long lastActiveTime;

    public Session(String id) {
        super(4);
        this.id = id;
        lastActiveTime = System.currentTimeMillis();
    }

    public String getId() {
        return id;
    }

    public long getLastActiveTime() {
        return lastActiveTime;
    }

    void setLastActiveTime(long time) {
        lastActiveTime = time;
    }
}